<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>weibo</title>
    <link href="style/weibo.css" rel="stylesheet" type="text/css" />
    <script src="./lib/react.development.js"></script>
    <script src="./lib/react-dom.development.js"></script>
    <script src="./lib/babel.min.js"></script>
    <script src="./node_modules/axios/dist/axios.min.js"></script>
</head>

<body>
    <div class="jyArea"></div>
    <script type="text/babel" src="./components/App.jsx"></script>
    <script type="text/babel" src="./components/CommentOn.jsx"></script>
    <script type="text/babel" src="./components/PageList.jsx"></script>
    <script type="text/babel" src="./components/TakeComment.jsx"></script>
    <script type="text/babel" type="text/babel">
        axios.defaults.baseURL = 'http://127.0.0.1:8081'
        axios.interceptors.response.use(response=>{
            const {ok,msg} = response.data
            if(ok===-1){
                alert(msg)
                return new Promise(()=>{})
            }
            return response.data
        })
        React.Component.prototype.$http = axios
        ReactDOM.createRoot(document.querySelector('.jyArea')).render(<App/>)
    </script>
</body>

</html>